package com.ruoyi.liaotian.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 互动聊天管理对象 chatrecord
 * 
 * @author ruoyi
 * @date 2023-04-07
 */
public class Chatrecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 备用2 */
    private String spare1;

    /** 备用1 */
    private String spare;

    /** 备用3 */
    private String spare2;

    /** 接收者 */
    @Excel(name = "接收者")
    private String spare3;

    /** 直播聊天id */
    private Long chatrecordId;

    /** 聊天内容 */
    @Excel(name = "聊天内容")
    private String content;

    /** 发送者 */
    @Excel(name = "发送者")
    private String spare4;

    /** 聊天发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "聊天发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendingTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSpare1(String spare1) 
    {
        this.spare1 = spare1;
    }

    public String getSpare1() 
    {
        return spare1;
    }
    public void setSpare(String spare) 
    {
        this.spare = spare;
    }

    public String getSpare() 
    {
        return spare;
    }
    public void setSpare2(String spare2) 
    {
        this.spare2 = spare2;
    }

    public String getSpare2() 
    {
        return spare2;
    }
    public void setSpare3(String spare3) 
    {
        this.spare3 = spare3;
    }

    public String getSpare3() 
    {
        return spare3;
    }
    public void setChatrecordId(Long chatrecordId) 
    {
        this.chatrecordId = chatrecordId;
    }

    public Long getChatrecordId() 
    {
        return chatrecordId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSpare4(String spare4) 
    {
        this.spare4 = spare4;
    }

    public String getSpare4() 
    {
        return spare4;
    }
    public void setSendingTime(Date sendingTime) 
    {
        this.sendingTime = sendingTime;
    }

    public Date getSendingTime() 
    {
        return sendingTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("spare1", getSpare1())
            .append("spare", getSpare())
            .append("spare2", getSpare2())
            .append("spare3", getSpare3())
            .append("chatrecordId", getChatrecordId())
            .append("content", getContent())
            .append("spare4", getSpare4())
            .append("sendingTime", getSendingTime())
            .toString();
    }
}
